package com.woniu108.product.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 门店库存表
 * </p>
 *
 * @author yanxi
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class StoreProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 门店商品编号
     */
    @TableId(value = "sp_info_id", type = IdType.AUTO)
    private Integer spInfoId;
    /**
     * 门店编号
     */
    @ApiModelProperty("门店编号")
    private Integer storeId;

    /**
     * 商品种类编号
     */
    private Integer pTId;

    /**
     * 商品品牌编号
     */
    private String pBId;

    /**
     * 商品详细名称
     */
    private String spInfoName;

    /**
     * 库存
     */
    private BigDecimal restNum;

    /**
     * 门店商品描述
     */
    private String spDetails;

    /**
     * 门店商品图片
     */
    private String spPicture;

    /**
     * 门店商品状态
     */
    private Integer spInfoState;


    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 门店价格
     */
    private BigDecimal storePrice;
}
